package com.ruoyi.publish.mapper;

import com.ruoyi.publish.domain.RecommendArticle;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RecommendArticleMapper {
    int insert(RecommendArticle recommendArticle);
    List<RecommendArticle> select(Long recommendArticleId);

    int delete(long recommendArticleId);

    int update(RecommendArticle recommendArticle);

    List<RecommendArticle> selectAllArticles(@Param("columnIdList") List<Long> columnIdList, @Param("excludeArticleId")List<Long> excludeArticleId,@Param("startDate") String startDate,@Param("endDate") String endDate,@Param("excludeRecommended") boolean excludeRecommended);

    int countByRecommendIdAndArticleId(@Param("recommendId")Long recommendId,@Param("articleId") String articleId);
}
